﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace DCT.CodeBox.Utility
{
    /// <summary>
    /// 集合工具类
    /// </summary>
    public static class CollectionUtility
    {
        /// <summary>
        /// 集合为空或者null
        /// </summary>
        /// <param name="collection"></param>
        /// <returns></returns>
        public static bool IsEmptyOrNull(ICollection collection)
        {
            return collection == null || collection.Count == 0;
        }
    }
}
